package com.yuyou.fn.portal.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * outer课程订单
 *
 */
@TableName(value = "outer_order")
public class OuterOrder implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<OuterOrder> createExample(){
		return new Example<OuterOrder>(OuterOrder.class);
	}

	/**  */
	@TableId(value = "outer_order_id")
	private Long outerOrderId;

	/** 下单人id */
	@TableField(value = "user_id")
	private Long userId;

	/** 订单名称 */
	@TableField(value = "order_name")
	private String orderName;

	/** 备注 */
	private String remark;

	/** 总金额 */
	@TableField(value = "total_amount")
	private BigDecimal totalAmount;

	/** 应缴金额 */
	@TableField(value = "payable_amount")
	private BigDecimal payableAmount;

	/** 已缴金额 */
	@TableField(value = "paid_amount")
	private BigDecimal paidAmount;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 缴费状态 0:未缴费 1:欠费 2:已缴费,4超时撤销 */
	@TableField(value = "charging_status")
	private Integer chargingStatus;

	/** 子单id以逗号隔开 */
	@TableField(value = "sub_order_ids")
	private String subOrderIds;

	/** 子单信息 */
	@TableField(value = "order_data")
	private String orderData;

	/** 0 :普通课程订单，1：众筹课程预定订单，2:众筹课程补差额订单 */
	@TableField(value = "order_type")
	private Integer orderType;

	@TableField(value = "channel")
	private String channel ;

	@TableField(value = "pay_amount_of_balance")
	private BigDecimal payAmountOfBalance ;

	public Long getOuterOrderId() {
		return this.outerOrderId;
	}

	public void setOuterOrderId(Long outerOrderId) {
		this.outerOrderId = outerOrderId;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getOrderName() {
		return this.orderName;
	}

	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public BigDecimal getTotalAmount() {
		return this.totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public BigDecimal getPayableAmount() {
		return this.payableAmount;
	}

	public void setPayableAmount(BigDecimal payableAmount) {
		this.payableAmount = payableAmount;
	}

	public BigDecimal getPaidAmount() {
		return this.paidAmount;
	}

	public void setPaidAmount(BigDecimal paidAmount) {
		this.paidAmount = paidAmount;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getChargingStatus() {
		return this.chargingStatus;
	}

	public void setChargingStatus(Integer chargingStatus) {
		this.chargingStatus = chargingStatus;
	}

	public String getSubOrderIds() {
		return this.subOrderIds;
	}

	public void setSubOrderIds(String subOrderIds) {
		this.subOrderIds = subOrderIds;
	}

	public String getOrderData() {
		return this.orderData;
	}

	public void setOrderData(String orderData) {
		this.orderData = orderData;
	}

	public Integer getOrderType() {
		return this.orderType;
	}

	public void setOrderType(Integer orderType) {
		this.orderType = orderType;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public BigDecimal getPayAmountOfBalance() {
		return payAmountOfBalance;
	}

	public void setPayAmountOfBalance(BigDecimal payAmountOfBalance) {
		this.payAmountOfBalance = payAmountOfBalance;
	}
}
